<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

    <meta name="author" content="http://www.huayingsoft.com/" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=8,IE=9,IE=10" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store">

    <link rel="stylesheet" href="../../css/bootstrap.min.css">
    <link rel="stylesheet" href="../../css/bootstrapEx.css">

    <script src="../../js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="../../js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../../js/bootstrapEx2.0.js"></script>
</head>

<body>
    <span style='font-size:20px;font-weight:bold;'>Alert弹框</span>
    <p/>
    <p/>
    <button id="btn1" class="btn btn-primary" type="button">弹出信息</button>
    <p/>
    <button id="btn2" class="btn btn-primary" type="button">弹出信息，带标题</button>
    <p/>
    <button id="btn3" class="btn btn-primary" type="button">弹出信息，带标题，N秒后消失</button>
    <p/>
    <button id="btn4" class="btn btn-primary" type="button">弹出信息，带标题，N秒后消失，消失后触发方法</button>
    <p/>
</body>
<script>
    var Modal1;//Hello World 设置窗口大小
    var Modal2;//最大化窗口 添加按钮
    $(document).ready(function () {
        //弹出信息
        $("#btn1").click(function () {
            bsEx.Alert("弹出信息");
        });
        //两个参数 标题，提示
        $("#btn2").click(function () {
            //两个参数 标题，提示
            bsEx.Alert("我是标题","弹出提示");
        });
        //弹出信息，带标题，3秒后消失
        $("#btn3").click(function () {
            bsEx.Alert("我是标题","弹出提示，3秒后消失",3);
        });
        //弹出信息，带标题，N秒后消失，消失后触发方法
        $("#btn4").click(function () {
            bsEx.Alert("我是标题","弹出提示，3秒后消失",3,function(){
                //触发了消失方法
                bsEx.Alert("提示","我消失了",1);
            });
        });
    });
</script>
</html>